<%@ page language="java" contentType="text/html;UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page import="com.bear.model.entity.forum.actionForm.*" %>
<%@ page import="com.bear.model.entity.User" %>
<%@include file="../base.jsp" %>

<title>我的好友</title>


</head>
<body>
<%List<User> friends = (List<User>)request.getAttribute("friends");
%>
<img src="<c:url value="/ico/egg.jpg"/>" height="50"><font class="thick">我的好友</font><br>
<div class="demo-info">
	<div class="demo-tip icon-tip"></div>
	<div>去骚扰一下他们！</div>
</div>
<a href="<c:url value="/App.html"/>" class="easyui-linkbutton" >首页</a>
<a href="<c:url value="/userInfo.html"/>" class="easyui-linkbutton" >看看都有谁</a>
<%
if(friends!=null&&friends.size()>0)
{
for(User u:friends){
	String address = u.getPhotoAddress();
	String name = u.getUsername();
	String sign = u.getSign();
%>
<table>
	<tr>
	<td rowspan="3"><img 
<%
if(address==null){ 
%>	
src="<c:url value="/ico/head.jpg"/>" 
<%}
else{ %> 
src="<c:url value="<%=address %>"/>" 
<%} %>
height="150"></td>
	<td>用户名：</td><td><%=name %></td>
	</tr>
	<tr>
	<td rowspan="2">个性签名：</td><td><%=sign %></td>
	</tr>
</table>
<%}}
else
{
	out.print("<font>你还没有好友呢，回去看看吧</font>");
}
%>


<%@include file="../botton.jsp" %>
</body>
</html>